<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr valign="top">
        <td>
            <%@include file="leftParts/findProductsByName.jsp"%>
        </td>
    </tr>
    <tr>
        <td>
            <%@include file="leftParts/login.jsp" %>
        </td>
    </tr>
</table>
<script language="JavaScript">
    //通过for循环，遍历每一项表单元素，验证表单元素的值是否为空
    function checkForm(form) { //form是要进行验证的表单名称
        for (let i = 0; i < form.length; i++) {
            if (form.elements[i].value === "") {
                alert("表单信息不能为空");
                return false;
            }
        }
    }
    function quit() {
        if (confirm("没有要买的东西了吗？")) {
            //TODO: 网站虚拟目录动态获取
            window.location.href = "<%=request.getContextPath()%>/pages/customer/loginOut.jsp";
        }
    }
</script>


